package com.hyh.ad.common.constants;


/**
 * redis常量
 * @author hyh
 */
public class RedisConstant {

    /*
     * 权限缓存前缀
     */
    public static final String USER_PERMISSION_PREFIX = "user:permission:";


    /*
     * 用户会话前缀
     */
    public static final String USER_SESSION_PREFIX = "user:session:";


    /*
     * TOKEN前缀
     */
    public static final String USER_TOKEN_PREFIX = "user:token:";


    /*
     * 验证码前缀
     */
    public static final String CAPTCHA_PREFIX = "captcha:";


    /*
     * 验证码过期时间 5
     */
    public static final Long TIMEOUT_FIVE = 5L;


    /*
     * 验证码过期时间 10
     */
    public static final Long TIMEOUT_TEN = 10L;

    /*
     * 验证码过期时间 30
     */
    public static final Long TIMEOUT_THIRTY = 30L;



    /*
     * 邮箱
     */
    public static final String REGISTER_EMAIL_PREFIX = "register:email:";



    /*
     * 邮箱验证码
     */
    public static final String REGISTER_EMAIL_CODE = "register:email:code:";

    /*
     * 邮箱验证码
     */

    /*
     * 验证码过期时间 60
     */
    public static final Long TIMEOUT_SIXTY = 60L;

    /*
     * 日期
     */
    public static final String SYSTEM_VISIT_DAY = "system:visit:day:";

}
